package org.noka.nokatabmenu;


public class TabItem {
	public String id = null;//选项卡id
	public String title = null;//标题
	public String onselect = null;//在选中时调用的js方法
	public String open = null;//选中
	public String url = null;//url，可以为空
	
	public TabItem(String id,String title,String onselect,String open,String url){
		this.id = id;
		this.title = title;
		this.onselect = onselect;
		this.open = open;
		this.url = url;
	}
	
	public int hashCode(){
		return id.hashCode();
	}
	public boolean equals(Object obj) {  
        if(obj == null) return false;  
        if(this == obj) return true;  
        if(obj instanceof TabItem){   
        	TabItem tabItem =(TabItem)obj;  
            if(tabItem.id.equals(this.id)){
            	return true;  
            }
        }  
        return false;  
    }
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getOnselect() {
		return onselect;
	}
	public void setOnselect(String onselect) {
		this.onselect = onselect;
	}
	public String getOpen() {
		return open;
	}
	public void setOpen(String open) {
		this.open = open;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
}
